package ${basepackage}.framework.base.util;

import java.io.PrintWriter;
import java.io.StringWriter;

import org.apache.log4j.Logger;



<#include "/author.include">
public class Log {
	private static Logger log = Logger.getLogger(Log.class);

	public static void debug(Object obj) {
		log.debug("$$[QQQ DEBUG] "+obj);
	}

	public static void info(Object obj) {
		log.info("$$[QQQ INFO] "+obj);
	}

	public static void warn(Object obj) {
		log.warn("$$[QQQ WARN] "+obj);
	}

	public static void error(Object obj) {
		log.error("$$[QQQ ERROR] "+obj);
	}

	
	
	public static void logExceptionStackTrack(Throwable e){
		StringWriter sw = new StringWriter();
		PrintWriter p = new PrintWriter(sw);
		e.printStackTrace(p);								
		Log.info(sw.toString());
	}
}
